<%@ page import ="gov.chinatax.ctcps.formbean.sysform.LoginForm"%>
<%@ page import ="com.jiuqi.common.Constants"%>

<%

LoginForm userForm=(LoginForm)request.getSession().getAttribute(Constants.USER_KEY);
String myYsjc = userForm.getYsjcdm();


%>

<script>
function hasRole(name){
	var show = false;
	var roles = name.split(',');
	for(var i=0;i<roles.length;i++){
		if(roles[i]=='<%=myYsjc%>'){
			show = true;
		}
	}
	return show;
}
</script>